﻿using System;
using System.Collections.Generic;
using System.Text;

namespace TypeSample
{
    public class Student
    {

        public string Name { get; }
        public int Year { get; }

        public Student(string name, int year)
        {
            Name = name;
            Year = year;
        }

        public void Print()
        {
            Console.WriteLine($"{Name} {Year}");
        }
    }
}
